import request from '@/utils/request'

export function getPage(data) {
  return request({
    url: '/receipt/getPage',
    method: 'post',
    data
  })
}

export function save(data) {
  return request({
    url: '/receipt/save',
    method: 'post',
    data
  })
}

export function downloadXml(data) {
  return request({
    url: '/receipt/downloadXml/flow',
    method: 'post',
    params: data,
    responseType: 'blob'
  })
}

export function deleteData(data) {
  return request({
    url: '/receipt/delete',
    method: 'post',
    params: data
  })
}
